package com.weiwu.weiwustore.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;

/**
 * material
 * 材料表
 */
@Data
@TableName("material")
public class Material implements java.io.Serializable  {
    @TableId(type = IdType.AUTO)
    /** 记录id */
    private Integer id;

    /** 适用仓库id */
    @TableField("storeid")
    private Integer storeid;

    /** 材料名称 */
    @TableField("mname")
    private String mname;

    /** 单位 */
    @TableField("quantity")
    private String quantity;

    /** 指导价 */
    @TableField("price")
    private Double price;

    /** 材料大类id */
    @TableField("typeid")
    private Integer typeid;

    /** 数据创建时间 */
    private Date createtime;
    /** 数据最新修改时间 */
    private Date updatetime;
    public Material (){}
    public Material (String mname,String quantity,Double price,Integer storeid){
        this.mname=mname;
        this.quantity=quantity;
        this.price=price;
        this.storeid=storeid;
    }
}